package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.EXTENSION_TRIAL_CALCULATION;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;


public class PostponeApi implements IRequestApi, IRequestType {

    private ReqPostponeBean overripe;

    public PostponeApi(String cindy) {
        this.overripe = new ReqPostponeBean(cindy);
    }

    @NonNull
    @Override
    public String getApi() {
        return EXTENSION_TRIAL_CALCULATION;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqPostponeBean {
        private String cindy;

        public ReqPostponeBean(String cindy) {
            this.cindy = cindy;
        }
    }

    public static final class PostponeBean {

        private String cindy;
        private String atonalism;
        private double shorefront;
        private double herzegovina;
        private double awag;
        private double strabismal;
        private double calculator;
        private double tubulure;
        private String thalassochemical;
        private String sertoman;
        private String gilsonite;
        private int gastrology;
        private int nacelle;
        private String scooterist;
        private int hebron;

        public String getCindy() {
            return cindy;
        }

        public String getAtonalism() {
            return atonalism;
        }

        public double getShorefront() {
            return shorefront;
        }

        public double getHerzegovina() {
            return herzegovina;
        }

        public double getAwag() {
            return awag;
        }

        public double getStrabismal() {
            return strabismal;
        }

        public double getCalculator() {
            return calculator;
        }

        public double getTubulure() {
            return tubulure;
        }

        public String getThalassochemical() {
            return thalassochemical;
        }

        public String getSertoman() {
            return sertoman;
        }

        public String getGilsonite() {
            return gilsonite;
        }

        public int getGastrology() {
            return gastrology;
        }

        public int getNacelle() {
            return nacelle;
        }

        public String getScooterist() {
            return scooterist;
        }

        public int getHebron() {
            return hebron;
        }
    }
}

